package com.glela.platform.model;

import java.util.Date;
import java.util.UUID;

public class Token {
    private Long id;

    private String code;

    private Long userId;

//    private Long deviceId;

//    private Integer status;

    private Date createTime;
    
    private String clientType ;
    
    

    public String getClientType() {
		return clientType;
	}

	public void setClientType(String clientType) {
		this.clientType = clientType;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? UUID.randomUUID().toString() : code.trim();
    }

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}